package com.yuanqi.java.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class PurchaseOrderDTO {
    private Long id;
    private String orderNo;
    @NotNull(message = "供应商不能为空")
    private Long supplierId;
    @NotNull(message = "创建人ID不能为空")
    private Long creatorId;
    private BigDecimal totalAmount;
    private String remark;
    private List<PurchaseOrderItemDTO> items;
    private Integer status;
}
